package com.nifostasky.blog.controller;



import com.nifostasky.entity.TUser;
import com.nifostasky.service.impl.TUserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * (TUser)表控制层
 *
 * @author makejava
 * @since 2021-09-28 16:44:19
 */
@RestController
@RequestMapping("/tUser")
public class TUserController {

    @Autowired
    private TUserServiceImpl tUserService;

    /**
     * 测试事务
     */
    @PostMapping("/testTransactional")
    public List<TUser> testTransactional(@RequestBody  TUser tUser){
        return tUserService.a(tUser);
    }

}
